<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			var str1="I'm a boy";
			var re1=/boy/i;
			document.write(str1.match(re1));
			document.write("<br />");
			
			var str2="I like hsy";
			var re2=/hsy/i;
			document.write(str2.search(re2));
			document.write("<br />");
			
			var str3="I like hsy";
			var re3=/hsy/i;
			document.write(str3.replace(re3,"hsy"));
			document.write("<br />");
			
		</script>
	</body>
</html>
